group(:component) do
pwd = XM::Platform.root.join("comps/pdm_server")
#java_home = XM::Platform.root.join("jre1.8.0")
timestamp = Time.now.strftime("%Y%m%d%H%M%S")
  group(:pdm_server, :order => 10, :description => "The pdm server") do
    java(:ps_userpane, "comps/pdm_server",
         :order => 20,
         :stdout =>"NUL",
         :classpath => %W[conf],
         :java_options => %W{-server -noverify -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=server_#{timestamp}.hprof -Xms#{pdm_server_userpane} -Xmx#{pdm_server_userpane} -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:#{pwd}/log/gc_server.log -Dfile.encoding=UTF-8 -Djava.library.path=bin -Dapplication.name=PS-USERPANE -Djava.system.class.loader=com.codesafe.SafeClassLoader -Dapp.class.path=#{pwd}/lib/thirdpart;#{pwd}/lib/shared;#{pwd}/lib/ps-shared;#{pwd}/lib/ps-userpane},
         :start => {:main => "cn.com.betasoft.dsat.web.Userpane"},
         :started => {:port => 30300, :timeout => false },
         :stop => :kill)
  end
end